package sbe.sonar.client.database.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import org.eclipse.persistence.jpa.PersistenceProvider;



public class GSBEEntityManagerFactory {

	private static EntityManagerFactory emf;
	
	public static EntityManager getDefaultEntityManager(){
		if (null == emf){
			emf = new PersistenceProvider().createEntityManagerFactory("sbe.sonar.client.database", null);
		}
        return emf.createEntityManager();
	}
}
